Number.prototype.format = function(options) {
	options = options || {};
    var formatted = this.toString()
    if(options.decimalPlaces) {
    	formatted = this.toFixed(options.decimalPlaces);
    }
    if(options.decimalSeparator) {
    	formatted = formatted.replace(/\./, options.decimalSeparator);
    }

    return '' + formatted;
}


Number.isInt = function(n) {
	return typeof n== "number" && isFinite(n) && n%1===0;
}